import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
export default new Router({
  mode: 'history',
  routes: [
    {
      path: '*',
      name: '404',
      component: r => require.ensure([], () => r(require('@/components/public/page404')))
    },
    {
      path: '/',
      name: 'index',
      component: r => require.ensure([], () => r(require('@/components/lanwan/index/index')))
    },
    {
      path: '/AdminOderList',
      name: 'AdminOderList',
      component: r => require.ensure([], () => r(require('@/components/admin/AdmiConfig/oder')))
    },
    {
      path: '/oderChert',
      name: 'oderChert',
      component: r => require.ensure([], () => r(require('@/components/admin/AdmiConfig/oderChert')))
    },
    {
      path: '/register',
      name: 'register',
      component: r => require.ensure([], () => r(require('@/components/public/register')))
    },
    {
      path: '/searchList',
      name: 'searchList',
      component: r => require.ensure([], () => r(require('@/components/lanwan/index/searchList')))
    },
    {
      path: '/login',
      name: 'login',
      component: r => require.ensure([], () => r(require('@/components/public/login')))
    },
    {
      path: '/oderChart',
      name: 'oderChart',
      component: r => require.ensure([], () => r(require('@/components/lanwan/index/oderChart')))
    },
    {
      path: '/searchChart',
      name: 'searchChart',
      component: r => require.ensure([], () => r(require('@/components/lanwan/index/searchChart')))
    },
    {
      path: '/oderList',
      name: 'oderList',
      component: r => require.ensure([], () => r(require('@/components/lanwan/index/oderList')))
    },
    {
      path: '/update',
      name: 'update',
      component: r => require.ensure([], () => r(require('@/components/public/update')))
    },
    {
      path: '/updatePassword',
      name: 'updatePassword',
      component: r => require.ensure([], () => r(require('@/components/public/updataPassword')))
    },
    {
      path: '/backPassword',
      name: 'backPassword',
      component: r => require.ensure([], () => r(require('@/components/public/backPassword')))
    },
    {
      path: '/adminLogin',
      name: 'adminLogin',
      component: r => require.ensure([], () => r(require('@/components/public/adminLogin')))
    }
  ]
})
